FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER pnoker <pnokers.icloud.com>

#修改时区，兼容CentOS7、RHEL7、Scientific Linux 7、Oracle Linux 7
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && mkdir -p /dc3-center/dc3-collect

WORKDIR /dc3-center/dc3-collect

ADD ./target/dc3-collect.jar ./

EXPOSE 8500

CMD java -Djava.security.egd=file:/dev/./urandom -jar dc3-collect.jar
